package com.naiterui.ehp.bs.emr.vo.openapi.his;

import com.naiterui.ehp.bs.emr.utils.his.param.resp.ExamineResp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author yiren
 * @since 2022/1/25
 */
@Data
public class Examine {
	@ApiModelProperty(value = "名称")
	private String name;

	@ApiModelProperty(value = "描述")
	private String desc;

	@ApiModelProperty(value = "结果")
	private String result;

	@ApiModelProperty(value = "报告地址")
	private String reportUrl;

	@ApiModelProperty(value = "报告人")
	private String reporter;

	@ApiModelProperty(value = "报告时间")
	private String reportTime;

	public static Examine of(ExamineResp resp) {
		Examine examine = new Examine();
		BeanUtils.copyProperties(resp, examine);
		return examine;
	}
}
